package GiaoDien;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeListener;

import javax.swing.Action;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JRadioButton;
import javax.swing.JButton;

public class pn_MoiRoiNhom extends JPanel {

	/**
	 * Create the panel.
	 */
	public pn_MoiRoiNhom(String userNameKick,String userNameBeKick) {
		this.setBackground(new Color(220,210,200));
		
		//this.setLayout(new BorderLayout(0, 0));
		
		JLabel lblTitle = new JLabel("Title");
		lblTitle.setBounds(37, 5, 334, 51);
		
		lblTitle.setText("<html><font size = 6 color = BLUE align=center>Mời thành viên ra khỏi nhóm</font></html>");
		add(lblTitle);
		
		
		
		JLabel lblThongbao = new JLabel();
		lblThongbao.setBounds(347, 19, 0, 0);
		lblThongbao.setText("<html><font size = 4 color = BLACK >"+userNameKick+" đang yêu cầu biểu quyết để mời "+userNameBeKick+" ra khỏi nhóm.\n Bạn phải thực hiện trong : </font></html>");
		add(lblThongbao);
		
		JRadioButton rdbtnDongy = new JRadioButton();
		rdbtnDongy.setBounds(246, 134, 61, 23);
		rdbtnDongy.setText("Đồng ý");
		add(rdbtnDongy);
		
		JRadioButton rdbtnKhongdongy = new JRadioButton();
		rdbtnKhongdongy.setText("Không đồng ý");
		rdbtnKhongdongy.setBounds(94, 134, 91, 23);
		add(rdbtnKhongdongy);
		
		JButton btnHoantat = new JButton("HoanTat");
		btnHoantat.setBounds(94, 218, 75, 23);
		btnHoantat.setText("Hoàn tất");
		btnHoantat.setActionCommand("HoanTat");
		btnHoantat.addActionListener(new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent arg0) {
				// TODO Auto-generated method stub
				
			}
		});
		add(btnHoantat);
		
		JButton btnHuybo = new JButton();
		btnHuybo.setBounds(250, 218, 67, 23);
		btnHuybo.setText("Hủy bỏ");
		btnHuybo.setActionCommand("HuyBo");
		btnHuybo.addActionListener(new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent arg0) {
				// TODO Auto-generated method stub
				
			}
		});
		add(btnHuybo);

	}
}
